// Copyright  2004-2008 Backplane Ltd.
//
// This file is part of Ubiquity formsPlayer
//
// Ubiquity formsPlayer is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3 of the License, or (at your
// option) any later version.
//
// Ubiquity formsPlayer is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License
// along with Ubiquity formsPlayer If not, see <http://www.gnu.org/licenses/>.
//	
//
//   Purpose: declaration of CXFormsElementFormControlInput.
//   $Id$
#ifndef __FORMCONTROLINPUTUI_H
#define __FORMCONTROLINPUTUI_H 

#include "SingleNodeBindingUI.h"

class CXFormsElementFormControlInput : public CXFormsElementSingleNodeBinding
{
public:
	CXFormsElementFormControlInput();
	virtual ~CXFormsElementFormControlInput();
	virtual HRESULT put_caption(const BSTR sCaption);
	virtual HRESULT get_caption(BSTR * psCaption);
	virtual HRESULT put_hint(const BSTR sHint);
	virtual HRESULT get_hint(BSTR * psHint);
	virtual HRESULT put_alert(const BSTR sAlert);
	virtual HRESULT get_alert(BSTR *psAlert);
	virtual HRESULT resetScriptDispID();
	virtual HRESULT InitBehaviour();
protected:
	virtual HRESULT copyStyle();
	virtual HRESULT getSignificantDescendentNodes(IHTMLDocument3 * pDoc3);

	CComPtr<IHTMLElement> m_pCaptionUI;
	DISPID m_didPutAlert;
private:
	DISPID m_didPutLabel;

};

#endif // __FORMCONTROLINPUTUI_H